import React from "react"
import CurrentHead from "../../../components/home_components/CurrentPage/CurrentHead"
import CurrentNav from "../../../components/home_components/CurrentPage/CurrentNav"
import CurrentList from "../../../components/home_components/CurrentPage/CurrentList"

export default class CurrentPage extends React.Component{

    render () {
      let keyWords = decodeURIComponent(this.props.match.params.region);
      return (
        <div className="hotsearch-container">
          <CurrentHead history={this.props.history} keyWords={ keyWords } />
          <CurrentNav />
          <CurrentList keyWords={ keyWords } />
        </div>
      )
    }

}

